package main

import (
	"fmt"
	"log"
	"os"
)

func init() {
	Cookie = os.Getenv("bili-cookie")
	SubMsgString = true
}

func main() {
	err := SendMsg("B站的都在是个字域名就可以打喽就可以打喽dalous")
	if err != nil {
		log.Fatal(err)
	}
	gotRooms, err := GetMsg(8290796)
	if err != nil {
		log.Fatal(err)
	}
	for _, v := range gotRooms {
		fmt.Println(v.Text, v.Nickname, v.Timeline)
	}
}
